🎖️GitЯра🎖️
core/konsist/README.md bd2863243bab6eb213401d949839a2bc74dde7e2 (bd286324) Text, 1.13 KB
T383838:core:konsist
Overview
The T383838:core:konsist module is the architecture-guard module. It holds no production code — only Konsist tests that scan every module's Kotlin source from disk and assert the repo's KMP boundary rules from T383838AGENTS.md.
Konsist is JVM-only, so the tests live in T383838jvmTest (they cannot go in T383838commonTest).
What It Checks
T383838CommonMainFrameworkBoundaryTest enforces the framework-bleed rule for shared code — any file in a T383838commonMain source set must never depend on platform APIs:
• no T383838android.* imports in T383838commonMain
• no T383838java.* imports in T383838commonMain
Shared code must use the KMP equivalents instead (Okio, kotlinx-datetime, atomicfu, T383838Mutex, …). Because Konsist scans the whole project from disk (T383838Konsist.scopeFromProject()), this single test class covers every module in the repo.
Running
T282828
./gradlew :core:konsist:allTests
The tests execute on the JVM target only. They run in CI as part of the standard T383838allTests baseline gate, so a framework-bleed regression anywhere in the repo fails this module's tests.
Served by rngit 1.5.0 - Generated in 0.05s